//
//  FPDetailCinemaTableViewCell.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/15.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPDetailCinemaTableViewCell.h"
#define textColor [UIColor colorWithWhite:0.792 alpha:1.000]

@implementation FPDetailCinemaTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 搭建视图
        [self B_tableViewCell];
    }
    return self;
}

// 搭建视图
- (void)B_tableViewCell
{
    // 创建点击查看详情按钮
    self.DetailButton = [UIButton buttonWithType:UIButtonTypeSystem];
    self.DetailButton.frame = CGRectMake(kImageW(kScreenWidth - 85), kImageH(20), kImageW(70), kImageH(30));
    self.DetailButton.layer.cornerRadius = kImageH(30) / 2;
    self.DetailButton.layer.masksToBounds = YES;
    self.DetailButton.backgroundColor = [UIColor orangeColor];
    [self.DetailButton setTitle:@"详情" forState:UIControlStateNormal];
    [self.DetailButton setTintColor:[UIColor whiteColor]];
    [self.contentView addSubview:_DetailButton];
    
    // 创建影片开播时间label
    self.startTimeLabel = [UILabel labelWithFrame:CGRectMake(kImageW(15), kImageH(20), kImageW(80), kImageH(30)) text:@"11:00" fontSize:18.0 fontWeight:3.0 color:[UIColor blackColor]];
    [self.contentView addSubview:_startTimeLabel];
    
    // 创建影片开播时间label
    self.endTimeLabel = [UILabel labelWithFrame:CGRectMake(kImageW(15), kImageH(50), kImageW(80), kImageH(20)) text:@"12:56散场" fontSize:12.0 fontWeight:1.0 color:textColor];
    [self.contentView addSubview:_endTimeLabel];
    
    // 创建影片播放类型label
    self.playTypeLabel = [UILabel labelWithFrame:CGRectMake(kImageW(115), kImageH(20), kImageW(100), kImageH(20)) text:@"2D/中文" fontSize:14.0 fontWeight:1.0 color:[UIColor blackColor]];
    self.playTypeLabel.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:_playTypeLabel];
    
    // 创建播放厅位置label
    self.playAddrLabel = [UILabel labelWithFrame:CGRectMake(kImageW(105), kImageH(50), kImageW(100), kImageH(20)) text:@"2号厅" fontSize:14.0 fontWeight:1.0 color:[UIColor blackColor]];
    self.playAddrLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:_playAddrLabel];
    
    // 创建电影票价格符号label
    self.moneySymbelLabel = [UILabel labelWithFrame:CGRectMake(kImageW(225), kImageH(25), kImageW(20), kImageH(20)) text:@"$" fontSize:14.0 fontWeight:1.0 color:[UIColor orangeColor]];
    [self.contentView addSubview:_moneySymbelLabel];
    
    // 创建电影票价格label
    self.priceLabel = [UILabel labelWithFrame:CGRectMake(kImageW(240), kImageH(20), kImageW(40), kImageH(30)) text:@"42" fontSize:23.0 fontWeight:2.0 color:[UIColor orangeColor]];
    [self.contentView addSubview:_priceLabel];
}

/* 本页面所有控件
 UIButton *DetailButton;  // 点击查看详情
 UILabel *startTimeLabel; // 影院影片开播时间
 UILabel *endTimeLabel;   // 影院影片播止时间
 UILabel *playTypeLabel;  // 播放影片类型
 UILabel *playAddrLabel;  // 播放影片厅所在位置
 UILabel *moneySymbelLabel;// 价格符号
 UILabel *priceLabel;     // 价格
 */


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
